/*
                    Widget Class Implementation
*/
#include "Widget.h"

Widget::Widget()
{
    bEnabled = true;
}

void Widget::setName(string strNewName)
{
    strName = strNewName;
}

string Widget::getName()
{
    return strName;
}

int Widget::setFramePosition(Point NewPosition)
{
    FramePos = NewPosition;
}

void Widget::setVisible(bool bNewVal)
{
    bVisible = bNewVal;
}

bool Widget::getVisible()
{
    return bVisible;
}

void Widget::setEnabled(bool bNewVal)
{
    bEnabled = bNewVal;
}

bool Widget::getEnabled()
{
    if (bVisible == false)
    {
        return false;
    }

    return bEnabled;
}

void Widget::setTooltip(const string& strNewTooltip)
{
    strTooltip = strNewTooltip;
}

string Widget::getTooltip()
{
    return strTooltip;
}
